package me.zhengjie.sqlservice.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import me.zhengjie.mapper.WcsInboundAbnormalMissionHistoryMapper;
import me.zhengjie.pojo.entity.WcsInboundAbnormalMissionHistory;
import me.zhengjie.sqlservice.WcsInboundAbnormalMissionHistoryService;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class WcsInboundAbnormalMissionHistoryServiceImpl extends ServiceImpl<WcsInboundAbnormalMissionHistoryMapper, WcsInboundAbnormalMissionHistory> implements WcsInboundAbnormalMissionHistoryService {

    private final WcsInboundAbnormalMissionHistoryMapper wcsInboundAbnormalMissionHistoryMapper;

    @Override
    public boolean insertAbnormalHistory(WcsInboundAbnormalMissionHistory wcsInboundAbnormalHistoryMission) {
        return wcsInboundAbnormalMissionHistoryMapper.insert(wcsInboundAbnormalHistoryMission) >0;
    }
}
